﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;

public partial class movie_detail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string searchStr = Request.QueryString["searchText"];
        MovieData md = new MovieData();
        IQueryable<Movies> result = md.Search(searchStr);

        this.searchedMovies.DataSource = result;
        this.searchedMovies.DataBind();
    }
}